package com.xianggu.mybatis.enums;

/**
 * @author chengjy
 * @date 2025/3/6
 */
public enum SqlExecuteTypeEnum {
    INSERT(),
    UPDATE(),
    DELETE(),
    SELECT();

    public static SqlExecuteTypeEnum getSqlExecuteTypeEnum(String sqlType) {
        switch (sqlType) {
            case "insert":
                return INSERT;
            case "update":
                return UPDATE;
            case "delete":
                return DELETE;
            case "select":
                return SELECT;
            default:
                return null;
        }
    }
    }
